package com.xbongbong.pro.lowcodejsfile.pojo;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * @author 吴峰
 * @date 2021/03/10 10:20
 */
@Getter
@Setter
@ToString
@NoArgsConstructor
public class LowCodeJsFilePojo implements Serializable {
    private static final long serialVersionUID = 2116421536303321976L;

    private Long fileId;

    /**
     * 是否发布 0：未发布 1：已发布
     */
    private Integer whetherToPublish;

    /**
     * 未发布版本
     */
    private JsFilePojo release;

    /**
     * 发布版本
     */
    private JsFilePojo unreleased;

    public LowCodeJsFilePojo(Long fileId, Integer whetherToPublish, JsFilePojo release, JsFilePojo unreleased) {
        this.fileId = fileId;
        this.whetherToPublish = whetherToPublish;
        this.release = release;
        this.unreleased = unreleased;
    }
}
